<template>
  <div class="app-container">
    <switch-roles @change="handleRolesChange" />
  </div>
</template>

<script>
export default {
  name: 'PagePermission'
}
</script>

<script setup>
import { useRouter } from 'vue-router'
import SwitchRoles from '@/views/permission/components/SwitchRoles'

const router = useRouter()

const handleRolesChange = () => {
  router.push({ path: `/permission.index?${+new Date()}` })
}
</script>
